package cn.six1943.deepchat.module.ai.controller.admin.chatsession.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 会话消息新增/修改 Request VO")
@Data
public class ChatMsgSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9889")
    private Long id;

    @Schema(description = "会话id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10166")
    @NotNull(message = "会话id不能为空")
    private Long sessionId;

    @Schema(description = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "消息类型不能为空")
    private String type;

    @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "内容不能为空")
    private String content;

    @Schema(description = "用户ID", example = "9861")
    private Long userId;

    @Schema(description = "key")
    private String imKey;

    @Schema(description = "输入token", requiredMode = Schema.RequiredMode.REQUIRED, example = "25496")
    @NotNull(message = "输入token不能为空")
    private Integer inputTokenCount;

    @Schema(description = "输出token", requiredMode = Schema.RequiredMode.REQUIRED, example = "11934")
    @NotNull(message = "输出token不能为空")
    private Integer outputTokenCount;

    @Schema(description = "总tokent", requiredMode = Schema.RequiredMode.REQUIRED, example = "26729")
    @NotNull(message = "总tokent不能为空")
    private Integer totalTokenCount;

    @Schema(description = "创建部门")
    private Long createDept;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Integer status;

}